﻿#ifndef _OI_PLSCANNERDLL_PLYPAGE_HPP_
#define _OI_PLSCANNERDLL_PLYPAGE_HPP_

#include "OiPageAbstract.hpp"

namespace Oi
{
    namespace PLScannerDll
    {
        class PlyPage : public PageAbstract
        {
            Q_OBJECT

        public:
            PlyPage(QWidget * parent = nullptr);

        public:
            void setParams(const PLScannerCore::ProductParams& params);
            int setResult(const PLScannerCore::WorkResult::Result& result);

            void setRun(bool flag);
            void toCurrent();

        public slots:
            void onReady();

        protected:
            void resizeEvent(QResizeEvent *event);

        private:
            OI_DECLARE_IMPL(PlyPage);
            OI_DISABLE_COPY(PlyPage);

        };
<<<<<<< Updated upstream
=======


        class MeasureWidget: public QWidget
        {
        public:
            MeasureWidget(QWidget* parent = Q_NULLPTR);
            ~MeasureWidget();
            QWidget* init(QString name);
            void setTitalLable(QLabel* pLable, int backColor);
            int setValue(double value, int type);
            void setEarlyUpper(double value);
            void setEarlyLower(double value);
            void setUpper(double value);
            void setLower(double value);
        public:
            QWidget* _pLableWidget;
            QVBoxLayout* _pLay;
            QLabel* _pLabTitle;
            QLabel* _pLabStandard;
            QLabel* _pLabMeasure;
            QLabel* _pLabDisValue;
            

        public:
            double _maxWarningValue = 0;
            double _minWarningValue = 0;
            double _maxErrorValue = 0;
            double _minErrorValue = 0;
            double _standardValue;
            double _measureValue;
            double _difValue;
            double _warningValue;
            double _errorValue;
            int _Hight = 35;
            int _Width = 150;
            int _FontSize = 18;
        };

      
>>>>>>> Stashed changes
    }
}

#endif
